<!DOCTYPE html>
<!-- saved from url=(0033)http://122.112.243.143/test1.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK">
    <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
        
</head>

<body>
    <script>
        function setupWebViewJavascriptBridge(callback) {
            if (window.WebViewJavascriptBridge) { return callback(WebViewJavascriptBridge); }
            if (window.WVJBCallbacks) { return window.WVJBCallbacks.push(callback); }
            window.WVJBCallbacks = [callback];
            var WVJBIframe = document.createElement('iframe');
            WVJBIframe.style.display = 'none';
            WVJBIframe.src = 'https://__bridge_loaded__';
            document.documentElement.appendChild(WVJBIframe);
            setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0)
        }
    
    function test () {
        setupWebViewJavascriptBridge(function(bridge) {
                                     
                                     /* Initialize your app here */
                                     
<!--                                     bridge.registerHandler('godlike', function(data, responseCallback) {-->
<!--                                                            alert("被OC调用了")-->
<!--                                                            console.log("JS Echo called with:", data)-->
<!--                                                            responseCallback(data)-->
<!--                                                            })-->
<!--                                     <!--                                     bridge.callHandler('showMessage', "Godlike", function responseCallback(responseData) {-->-->
<!--                                                                                                 <!--                                                        console.log("JS received response:", responseData)-->-->
<!--                                                                                                 <!--                                                        })-->-->
<!--                                     bridge.callHandler('callFoundation', "godlike", function responseCallback(responseData) {-->
<!--                                                        console.log("JS received response:", responseData)-->
<!--                                                        })-->
                                     bridge.callHandler('scanQR_AI', function responseCallback(responseData) {
                                                        alert("JS received response:" + responseData)
                                                        })
                                     })
    }
    </script>
    <button id="button" onclick="test()">ocbutton</button>
    
    
    
</body></html>


